package com.cadre.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cadre.system.domain.officer.A26;
import com.cadre.system.mapper.A26Mapper;
import com.cadre.system.service.A26Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("a26Service")
public class A26ServiceImpl extends ServiceImpl<A26Mapper, A26> implements A26Service {
    @Autowired
    private A26Mapper a26Mapper;

    @Override // com.tdqy.cadre.modular.profess.service.A26Service
    @Transactional(rollbackFor = {Exception.class})
    public int insertSelective(A26 record) {
        return this.a26Mapper.insertSelective(record);
    }

    @Override // com.tdqy.cadre.modular.profess.service.A26Service
    @Transactional(rollbackFor = {Exception.class})
    public int updateByPrimaryKeySelective(A26 record) {
        return this.a26Mapper.updateByPrimaryKeySelective(record);
    }

    @Override // com.tdqy.cadre.modular.profess.service.A26Service
    @Transactional(rollbackFor = {Exception.class})
    public int deleteByPrimaryKey(String flowid) {
        return this.a26Mapper.deleteByPrimaryKey(flowid);
    }

    @Override // com.tdqy.cadre.modular.profess.service.A26Service
    public List<A26> selectByList(Map<String, Object> map) {
        return this.a26Mapper.selectByList(map);
    }

    @Override // com.tdqy.cadre.modular.profess.service.A26Service
    public void deleteByPersonIdAndFlag(String personid, short flag) {
        this.a26Mapper.deleteByPersonIdAndFlag(personid, flag);
    }
}
